package com.aloha.springframework.test.bean.po;

import com.aloha.springframework.beans.factory.annotation.Value;
import com.aloha.springframework.stereotype.Component;

/**
 * @author DaiZhiHeng
 * @date 2023/7/7 14:45
 */
@Component("dk")
public class User {

    private Integer id;

    @Value("${user.username}")
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                '}';
    }
}
